<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script>
	$(document).ready(function(){
		$("#diaryBtn").click(function(){
			location.href="${initParam.root}mypage/auth_diaryList.do";
		});
		$("#pubBtn").click(function(){
			location.href="${initParam.root}public/getPublicBoardList.do";
		});
		$("#introBtn").click(function(){
			location.href="${initParam.root}collection/contentList.do?page=1";
		});
		$(".pubtable").children().click(function(){
			location.href="${initParam.root}public/auth_detailBoard.do?no="
					+$(this).children().children().eq(0).text();
		});
		$(".diarytable").children().click(function(){
			location.href="${initParam.root}mypage/auth_diaryList.do";
		});
		$(".corrtable").children().click(function(){
			location.href="${initParam.root}collection/auth_detailCollectionHitPlus.do?no="
					+$(this).children().children().eq(0).text();
		});
	});
</script>
<style type="text/css">
.point :hover{
	cursor: pointer;
}
</style>
<h4>공유게시판 글목록</h4>
<img src="${initParam.root}img/add.png" align="left" height="20" id="pubBtn">
<br><br>
<c:forEach var="bvo" items="${requestScope.map.blist}">
	<table width="550" style="word-wrap: break-word; table-layout: fixed" class="pubtable">		
			<tr class="point">
			    <td align="left" width="100">${bvo.no}</td>			
				<td align="left">${bvo.title}</td>
				<td align="right">${bvo.date}</td>
			</tr>
	</table>
</c:forEach>
<br>
<hr width="550" align="left">
<br>
<h4>다이어리 글목록</h4>
<img src="${initParam.root}img/add.png" align="left" height="20" id="diaryBtn">
<br><br>
<c:forEach var="dvo" items="${requestScope.map.dlist}" begin="0" end="2">
	<table width="550" style="word-wrap: break-word; table-layout: fixed; border: 1px solid silver;" class="diarytable">		
			<tr class="point">
			    <td align="left" width="100">${dvo.no}</td>				
				<td align="left">${dvo.date}</td>
				<td align="right">
				<c:if test="${dvo.orgfilename!=null}">
				첨부파일: ${dvo.orgfilename}
				</c:if>
				</td>
			</tr>
			<tr class="point">
			<td colspan="3"><pre width="500" style="width:100%; height:80%; overflow:auto;">${dvo.content}</pre></td>
			</tr>
	</table>
	<br>
</c:forEach>
<br>
<hr width="550"  align="left">
<br>
<h4>자기소개서 글목록</h4>
<img src="${initParam.root}img/add.png" align="left" height="20" id="introBtn">
<br><br>
<c:forEach var="cvo" items="${requestScope.map.clist}">
	<table width="550" style="word-wrap: break-word; table-layout: fixed" class="corrtable">		
			<tr class="point">
			    <td align="left" width="100">${cvo.no}</td>			
				<td align="left">${cvo.title}</td>
				<td align="right">${cvo.date}</td>
			</tr>
	</table>
</c:forEach>
<br>
<hr width="550" align="left">
